<link rel="shortcut icon" href="__PUBLIC__/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="__PUBLIC__/css/common.css" />
<link rel="stylesheet" href="__PUBLIC__/css/index.css" />
<hdjs/>
<script type="text/javascript" src='__PUBLIC__/js/index.js'></script>
<!-- 头部开始 -->
	<div id="header">
		<div class="headBox">
			<div class="headTop">
					<div id="loginCart">
						<if value="isset($_SESSION['uid']) && isset($_SESSION['username'])">
							<div class="fl fixed header_avatar">
								<a class="avatar_new" href="{|U:'User/index',array('uid'=>$_SESSION['uid'])}">
									<img width="30" height="30" 
									<if value="is_file($uheadimg)">
										src="{$uheadimg}"
									<else/>
										src="__PUBLIC__/images/avatar.php.jpg"
									</if>>
								</a>
								<div class="username">
									<div class="n_username">
										<a href="{|U:'User/index',array('uid'=>$_SESSION['uid'])}">{$hd.session.username} </a>
										<span style="color:#ff762d; font-size:12px;cursor:pointer" onclick="hd_ajax('{|U:'LogReg/logout'}')">退出</span>
									</div>
								</div>
							</div>
						<else/>
							<div class="login">
								<a href="{|U:'LogReg/login'}">登陆</a>
								<a href="{|U:'LogReg/register'}">注册</a>
							</div>
						</if>
						<div class="cart">
							<a href="{|U:'Order/cart'}">购物车<span class="head_n_kind allNum"><if value="isset($_SESSION['cart'])">{$hd.session.cart.total_rows}<else/>0</if></span>件</a>
						</div>
					</div>
					<h1 id="logo">
						<a href="{|U:'Index/index'}"></a>
					</h1>
			</div>
			<div class="headBottom">
				<ul>
					<li class="homePage">
						<a href="{|U:'Index/index'}">首页</a>
					</li>
					<li class="category">
						<a href="{|U:'Category/top_list'}">分类</a>
						<div class="content">
							<div class="widget">
								<div class="cate">
									<div class="catetop fixed">
										<a href="{|U:'Category/top_list'}">
											<p class="english" style="color:#f3142b;">CUSTOM</p>
											<p style="font-size:16px;">全部分类</p>
										</a>
										<a href="{|U:'Category/sub_list',array('order'=>'new')}">
											<p class="english" style="color:#78dd00;">NEW</p>
											<p style="font-size:16px;">最新</p>
										</a>
										<a href="{|U:'Category/sub_list',array('order'=>'hot')}">
											<p class="english" style="color:#ff6c00;">HOT</p>
											<p style="font-size:16px;">最热</p>
										</a>
										<a href="{|U:'Category/sub_list',array('order'=>'love')}">
											<p class="english" style="color:#ff48b4;">LOVE</p>
											<p style="font-size:16px;">喜欢最多</p>
										</a>
									</div>
									<div class="cateitem ct">
										<list from='$topCate' name='value' row='8'>
											<a target="_blank" href="{|U:'Category/sub_list',array('cid'=>$value['cid'])}">{$value.cname}</a>
										</list>
									</div>
									<div class="catetag">
										<foreach from="$category" value="$value">
											<dl class="fixed">
												<dt>{$value.cname}：</dt>
												<dd>
													<foreach from="{$value.down}" value="$v">
														<a href="{|U:'Category/sub_list',array('cid'=>$v['cid'])}">{$v.cname}</a>
													</foreach>
												</dd>
											</dl>
										</foreach>
									</div>
									<div class="catemore">
										<a href="{|U:'Category/top_list'}">
											MORE 更多分类 >
										</a>
									</div>
									<div class="dot"></div>
								</div>
							</div>
						</div>
					</li>
					<foreach from="$chan" value="$value">
					<li>
						<a href="{|U:'Category/sub_list',array('nid'=>$value['nid'])}">{$value.nname}</a>
					</li>
					</foreach>
				</ul>
				<div class="search">
					<form action="{|U:'Search/index'}" method="post">
						<input type="text" placeholder="请输入要搜索的关键词" name="keyword"/>
						<input type="submit" value="" class="searchBtn">
					</form>
				</div>
			</div>
		</div>
	</div>
<!-- 头部结束 -->